<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 对接插件菜单
*/
defined('BY_JYA') or exit('error');
	$list = array(
			array('title'=>'个性类','list'=>array(
					array('name'=>'jy_farmerpdd','title'=>'拼多多领养','desc'=>'领养在手，领养所有！','icon'=>''),
					array('name'=>'jy_twojiup','title'=>'美丽天天秒','desc'=>'需农场[基本设置]开启分销支持！！','icon'=>''),
			)),
			array('title'=>'辅助类','list'=>array(
					array('name'=>'jy_live','title'=>'监控物联','desc'=>'对接实时监控，物联天下！！','icon'=>''),
					array('name'=>'jy_weishop','title'=>'智慧电商客','desc'=>'电商平台大牛，近百款促销功能','icon'=>''),
					array('name'=>'jy_diypage','title'=>'农场DIY装修','desc'=>'自由搭建个性农场，做不一样的农场！','icon'=>''),
					array('name'=>'jy_coupon','title'=>'全网优惠券','desc'=>'各种优惠活动集合，满足您不同的促销！','icon'=>''),
					array('name'=>'jy_cmslive','title'=>'CMS直播','desc'=>'直播在手，直播所有！','icon'=>''),
					array('name'=>'jy_cmsphoto','title'=>'CMS相册','desc'=>'相册在手，展示所有！','icon'=>''),
			)),
	);
	$setting = $this->plugin_setting('basic');
	$plugin_setting = $setting['plugins'];
	if($plugin_setting){
		$list[1]['list'] = $plugin_setting;
	}
	foreach($list as &$type){
		foreach($type['list'] as &$p){
			$install = pdo_get('core_plugins',array('name'=>$p['name']));
			if($install){
				$p['is_install'] = 1;
				$p['is_show'] = 1;
			}else{
				$p['is_install'] = 0;
				$p['is_show'] = 0;
				if($_SESSION['isfounder']){
					$p['is_show'] = 1;
				}
			}
			
		}
	}
	
	
return $list;
